//
//  LZFriendTrendViewController.m
//  LZHundredJie
//
//  Created by apple on 16/3/27.
//  Copyright © 2016年 m14a.cn. All rights reserved.
//

#import "LZFriendTrendViewController.h"
#import "LZLoginRegisterViewController.h"
#import "LZRecommendViewController.h"

@implementation LZFriendTrendViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
    
    // 设置导航条
    [self setupNavBar];
}

- (void)setupNavBar
{
    // 设置导航栏标题
    self.navigationItem.title = @"我的关注";
    self.navigationItem.leftBarButtonItem = [UIBarButtonItem itemWithTarget:self action:@selector(clickRecomment) image:@"friendsRecommentIcon" highImage:@"friendsRecommentIcon-click"];
}

// 点击推荐就会调用
- (void)clickRecomment
{
    LZRecommendViewController *recVC = [[LZRecommendViewController alloc] init];
    [self.navigationController pushViewController:recVC animated:YES];
}

// 点击登陆注册按钮调用
- (IBAction)loginRegister
{
    LZLoginRegisterViewController *loginVC = [[LZLoginRegisterViewController alloc] init];
    // 跳转到登陆注册界面modal
    [self presentViewController:loginVC animated:YES completion:nil];
}


@end
